import request from '@/utils/request'

// 查询流程抄送列表
export function listCopy(query) {
  return request({
    url: '/flowable/copy/list',
    method: 'get',
    params: query
  })
}

// 查询流程抄送详细
export function getCopy(id) {
  return request({
    url: '/flowable/copy/' + id,
    method: 'get'
  })
}

// 新增流程抄送
export function addCopy(data) {
  return request({
    url: '/flowable/copy',
    method: 'post',
    data: data
  })
}

// 修改流程抄送
export function updateCopy(data) {
  return request({
    url: '/flowable/copy',
    method: 'put',
    data: data
  })
}

// 删除流程抄送
export function delCopy(id) {
  return request({
    url: '/flowable/copy/' + id,
    method: 'delete'
  })
}
